package com.ifar.audiosdk.model.engine

import io.agora.rtc.RtcEngine
import io.agora.rtc.video.BeautyOptions

object EngineConstant {
    var MEDIA_SDK_VERSION: String = ""
    var BEAUTY_EFFECT_ENABLED = true // Built-in face beautification
    const val BEAUTY_EFFECT_DEFAULT_CONTRAST = 1
    const val BEAUTY_EFFECT_DEFAULT_LIGHTNESS = .7f
    const val BEAUTY_EFFECT_DEFAULT_SMOOTHNESS = .5f
    const val BEAUTY_EFFECT_DEFAULT_REDNESS = .1f
    val BEAUTY_OPTIONS = BeautyOptions(
        BEAUTY_EFFECT_DEFAULT_CONTRAST,
        BEAUTY_EFFECT_DEFAULT_LIGHTNESS,
        BEAUTY_EFFECT_DEFAULT_SMOOTHNESS,
        BEAUTY_EFFECT_DEFAULT_REDNESS
    )

    init {
        var sdk = "undefined"
        try {
            sdk = RtcEngine.getSdkVersion()
        } catch (e: Throwable) {
        }
        MEDIA_SDK_VERSION = sdk
    }
}